package kr.co.sdsway2.web;

import javax.servlet.http.HttpServletRequest;
import javax.servlet.http.HttpServletResponse;

import kr.co.sdsway2.common.AbstractContraller;

import org.springframework.web.servlet.ModelAndView;
import org.springframework.web.servlet.mvc.Controller;

public class SW2MainController extends AbstractContraller implements Controller {

	@Override
	public ModelAndView handleRequest(HttpServletRequest req,
			HttpServletResponse res) throws Exception {

		info("Returning hello view");
		info("파라미터: " + req.getParameter("aa"));
		req.setAttribute("aa", req.getParameter("aa"));
		ModelAndView mav = new ModelAndView("hello.jsp");
		mav.addObject("bb", "bb");

		return null;
	}

}
